#!/bin/sh

pwd
go env -w GOPROXY=https://goproxy.io,direct
go env -w CGO_ENABLED=0 
go env -w GOOS=linux
go env -w GOARCH=amd64
go env
go build -o server main.go
go mod vendor #避免每次重新生成docker都要下载依赖
chmod u+x server
./server
